//
//  UserDefaultsName.swift
//  YiZhangGui
//
//  Created by Fexerlear on 2018/9/25.
//  Copyright © 2018年 Mac. All rights reserved.
//

import Foundation

struct UserDefaultsName {
    
    private init() {}
    
    // 接口获取
    /// 易掌柜："", GT_DC店主："0", 导购："1"
    static let User_loginType         = "User_loginType"   // 易掌柜："", GT_DC店主："0", 导购："1"
    static let User_deviceToken       = "User_deviceToken" // 设备号
    static let User_token             = "User_token"       // 用户token
    static let User_phone             = "User_phone"       // 登录手机号
    static let User_role              = "User_role"        // 用户角色
    static let ego_id                 = "ego_id"           // 达e购id(在导购上传视频时使用)
    
    /// 在手动删除进程后再进来是否重新登录，根据两个判断（autimoticLogin和User_token）
    static let User_autimoticLogin    = "User_autimoticLogin"
    static let User_name              = "User_name"              // 用户姓名
    static let User_company           = "User_company"           // 用户所在公司
    static let User_allowNotification = "User_allowNotification" // 是否接受消息通知
    
    /// 为了在导购排班打卡时，虹软识别不成功，再次上传照片使用
    static let User_cert_name         = "User_cert_name"         // 导购身份证名字
    static let User_cert_no           = "User_cert_no"           // 导购身份证号码con.retailer_id
    static let User_cert_retailer_id  = "User_cert_retailer_id"  // 导购身份证号码
    
    
    // 本地使用
    // 推送跳转：
    static let Push_toNext            = "Push_toNext"
    static let Push_toNextOuStock     = "Push_toNextOuStock"
    static let Push_toNextRiskOrder     = "Push_toNextRiskOrder"
    
   // ZT 用户登录-账号验签 token
    static let ZTUser_token             = "ZTUser_token"       // 用户token
    
    static let ZTUser_maxRole            = "ZTUser_maxRole"       // 用户token

}

// 消息通知修改APP角标
let k_UpdateMyMessages_Macro = "updateMyMessages"
let mobclick_attributes = [
    "usertel": UserDefaultsManager.queryDataForString(UserDefaultsName.User_phone),
    "userRole" : UserDefaultsManager.queryDataForString(UserDefaultsName.User_role),
    "username": UserDefaultsManager.queryDataForString(UserDefaultsName.User_name),
    "channel": um_channel_Macro,
    "coname": UserDefaultsManager.queryDataForString(UserDefaultsName.User_company)]

public let User_role_FM         = "FM"   //  管理MPSS
public let User_role_MPSS       = "MPSS" // 管理MP(MP就是MPC)
public let User_role_SS         = "SS"   // 管理TSR、DSR
public let User_role_ASM        = "ASM"   // 融合到ss
public let User_role_MP         = "MP"   // (MP就是MPC)
public let User_role_TSR        = "TSR"
public let User_role_DSR        = "DSR"
public let User_role_KATSR      = "KATSR"// 融合到tsr
public let User_role_KASS       = "KASS" // 融合到ss
public let User_role_FSR        = "FSR"
public let User_role_RSM        = "RSM"
public let User_role_ZH        = "ZH"
public let User_role_CityLeader = "CityLeader"
public let User_role_SM        = "SM"
public let User_role_RSD       = "RSD"

public let User_role_HEAD = "总部人员"
 
public let User_role_include_SR = "SR"   // 用来区分SR用户的
public let User_role_include_SS = "SS"   // 用来区分管理者：SS用户的
public let User_role_include_MP = "MP"

 


// 存储 vivit_id 用于回答问题时使用
public let User_visit_id = "User_visit_id"
 
// 以下是在易掌柜中加入 GT_DC 功能，包含店主和导购登录，功能参考达e购
public let User_role_GT_DC     = "GT_DC"
public let User_shoppers_URL   = "User_shoppers_URL"  // 导购登录后的链接
 


